﻿/*CREATE TRIGGER [dbo].[JuntasPersonal_DeletionTrigger] 
    ON [JuntasPersonal] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[JuntasPersonal_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[JuntasPersonalGuid] = [JuntasPersonal_Tombstone].[JuntasPersonalGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[JuntasPersonal_Tombstone] 
    ([JuntasPersonalGuid], DeletionDate)
    SELECT [JuntasPersonalGuid], GETUTCDATE()
    FROM deleted 
END*/